import { createWebHashHistory, createRouter } from 'vue-router'

import Home from '../pages/home/index.vue';
import Login from '../pages/login/index.vue';
import User from '../pages/user/index.vue';
import NotFound from '../pages/notFound/index.vue';

const routes = [
    {
        path: '/',
        component: Home
    },
    {
        path: '/login',
        name:'login',
        component: Login
    },
    {
        path: '/user',
        component: User
    },
    {
        path: '/:pathMatch(.*)*',
        name: 'NotFound',
        component: NotFound
    },
]

const router = createRouter({
    history: createWebHashHistory(),
    routes,
});

export default router;